home *** CD-ROM | disk | FTP | other *** search
- Path: howland.reston.ans.net!agate!not-for-mail
- From: dim@soda.CSUA.Berkeley.EDU (D. Gerasimatos)
- Newsgroups: comp.lang.c,comp.protocols.tcp-ip
- Subject: Re: FTP Procedure, Help Wanted
- Date: 21 Feb 1996 13:22:41 -0800
- Organization: Computer Science Undergraduate Association, UC Berkeley
- Message-ID: <4gg2f1$9vg@soda.CSUA.Berkeley.EDU>
- References: <EYTAN.96Feb21105625@pan7.telos.com>
- NNTP-Posting-Host: soda.csua.berkeley.edu
-
- In article <EYTAN.96Feb21105625@pan7.telos.com>,
- Eytan Elbaz <eytan@pan7.telos.com> wrote:
- >
- >
- >Hi,
- >
- > I was hoping to get a little direction. I need to write
- >a C procedure that will basically be the 'ftp' protocol with
- >the command line arguments as the procedure arguments.
- >
- >(i.e.) ftp('cd pub','cd misc','get file','put file','bye');
- >
- >I am sure there must be something like that out there...
- >Anybody have a good starting place for me?
- >
-
-
- I'm not sure what the intended use is so this may be irrelevant, but
- why not something like (in csh):
-
- ftp -n -i $site <<EOF
- user $ruser $passwd
- type binary
- cd $dir
- mget "$file"
- quit
- EOF
-
-
-
- Dimitrios
-
-
-